package com.empire.module.sporttery.dal.mysql.football500yazcount;

import java.util.*;

import com.empire.framework.common.pojo.PageResult;
import com.empire.framework.mybatis.core.query.LambdaQueryWrapperX;
import com.empire.framework.mybatis.core.mapper.BaseMapperX;
import com.empire.module.sporttery.dal.dataobject.football500yazcount.Football500YazCountDO;
import org.apache.ibatis.annotations.Mapper;
import com.empire.module.sporttery.controller.admin.football500yazcount.vo.*;

/**
 * 亚盘实时表统计 Mapper
 *
 * @author 无敌仙人
 */
@Mapper
public interface Football500YazCountMapper extends BaseMapperX<Football500YazCountDO> {

    default PageResult<Football500YazCountDO> selectPage(Football500YazCountPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<Football500YazCountDO>()
                .eqIfPresent(Football500YazCountDO::getMatchId, reqVO.getMatchId())
                .eqIfPresent(Football500YazCountDO::getCompanyCount, reqVO.getCompanyCount())
                .eqIfPresent(Football500YazCountDO::getType, reqVO.getType())
                .eqIfPresent(Football500YazCountDO::getImMainWater, reqVO.getImMainWater())
                .eqIfPresent(Football500YazCountDO::getImBall, reqVO.getImBall())
                .eqIfPresent(Football500YazCountDO::getImCustomWater, reqVO.getImCustomWater())
                .eqIfPresent(Football500YazCountDO::getInitMainWater, reqVO.getInitMainWater())
                .eqIfPresent(Football500YazCountDO::getInitBall, reqVO.getInitBall())
                .eqIfPresent(Football500YazCountDO::getInitCustomWater, reqVO.getInitCustomWater())
                .orderByDesc(Football500YazCountDO::getId));
    }

}